package com.dog.basics.bean.dto.api.mtkj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author wph
 * @since 2020-05-29
 */
@Data
public class ApiOrderBasketDataAddDto {

    /**
     * 店铺ID
     */
    @NotNull(message = "店铺ID不能为空")
    @ApiModelProperty(value = "店铺ID", dataType = "Long", required = false)
    private Long shopId;

    /**
     * 订单优惠券id
     */
    @ApiModelProperty(value = "订单优惠券id", dataType = "Long", required = false)
    private Long couponId;


    @NotEmpty(message = "购物车ID不能为空")
    @ApiModelProperty(value = "购物车ID", dataType = " List<Long>", required = true)
    private List<Long> basketIds;

}
